package com.apabi.service;

import com.apabi.model.Downloads;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by huhu on 2018/1/13.
 */
public interface DownloadsService {

    Page<Downloads> findByUserId(Integer id, Pageable pageable);

    void deleteByUserId(Integer id);

    void deleteByIdAndUserId(Integer id, Integer userId);

}
